package edu.cuit.avatar;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/5 10:58
 */
public class StackOfIntegerTest {
    public static void main(String[] args) {
        var stack = new StackOfInteger();
        System.out.println("栈是否为空栈:" + stack.empty());

        for(int i = 1; i <= 36; i++)
            stack.push(i);

        System.out.println("查看栈顶元素:" + stack.peek());
        System.out.println("栈中元素个数:" + stack.size());

        System.out.println("=============弹栈(清空栈)================");
        while(!stack.empty())
            System.out.println(stack.pop());

        System.out.println("查看栈顶元素:" + stack.peek());
    }
}
